package cn.shcool.entity;

import java.io.Serializable;
import java.util.Date;

public class ExamResult implements Serializable {
	private long id, sbId, stId;
	private float score;
	private Date examDate;

	private Student student;// !!!!!!!!!!!!!!!!

	private Subject subject;

	public ExamResult() {

	}

	public ExamResult(long sbId, long stId, float score, Date examDate) {
		super();
		this.sbId = sbId;
		this.stId = stId;
		this.score = score;
		this.examDate = examDate;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getSbId() {
		return sbId;
	}

	public void setSbId(long sbId) {
		this.sbId = sbId;
	}

	public long getStId() {
		return stId;
	}

	public void setStId(long stId) {
		this.stId = stId;
	}

	public float getScore() {
		return score;
	}

	public void setScore(float score) {
		this.score = score;
	}

	public Date getExamDate() {
		return examDate;
	}

	public void setExamDate(Date examDate) {
		this.examDate = examDate;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	@Override
	public String toString() {
		return "ExamResult [id=" + id + ", sbId=" + sbId + ", stId=" + stId + ", score=" + score + ", examDate="
				+ examDate + "]";
	}

}
